-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add friend list support #271
Add friend list support #271
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Left just a few nitpick remarks about some comments and newlines.
Should we consider renaming the NTC packets? or leave them as is incase they are in some of the decrypted traces?
Arrowgene.Ddon.Shared/Entity/PacketStructure/C2SFriendRegisterFavoriteFriendReq.cs
Outdated
Show resolved
Hide resolved
public override void Write(IBuffer buffer, S2CCharacterCommunityCharacterStatusGetRes obj) | ||
{ | ||
WriteInt32(buffer, obj.Result); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: remove newline. Same request in other places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good PR, almost ready to be merged
Arrowgene.Ddon.Database/Files/Database/Script/schema_sqlite.sql
Outdated
Show resolved
Hide resolved
Arrowgene.Ddon.Shared/Entity/PacketStructure/S2CFriendRemoveFriendNtc.cs
Outdated
Show resolved
Hide resolved
Arrowgene.Ddon.Shared/Entity/PacketStructure/S2CFriendCancelFriendApplicationNtc.cs
Outdated
Show resolved
Hide resolved
Arrowgene.Ddon.Shared/Entity/PacketStructure/S2CFriendApproveFriendNtc.cs
Outdated
Show resolved
Hide resolved
Arrowgene.Ddon.Shared/Entity/PacketStructure/S2CFriendApplyFriendNtc.cs
Outdated
Show resolved
Hide resolved
|
||
foreach (var f in friends) | ||
{ | ||
if (f.Type != ContactListType.FriendList || f.Status != ContactListStatus.Accepted) continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a fan of these kind of unbracketed if statements. I've seen a lot of bugs where some other person comes to change and then made a mistake due to this kind of style. If Laith is ok with this though, then it is fine.
|
||
foreach (var f in friends) | ||
{ | ||
if (f.Type != ContactListType.FriendList) continue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above.
8a16cf2
to
9fc092b
Compare
Adds support for friend lists
Checklist:
develop
branch